package myexchange

class Modification {

	float amount
	String operation
	Share share = null
	
    static constraints = {
		share(nullable:true)
    }
	
	static mapping = {
		sort id:'desc'
	}
	
	String toString(){
		return operation + " " + amount + " " + share?.name
	}
	
}
